package cn.pojo;

import java.sql.Timestamp;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

@Component("detail")
public class Detail {
	private Long id;
	private Long sortId;
	private String name;
	private String address;
	private Double price;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Timestamp createDate;
	private Integer remaining;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSortId() {
		return sortId;
	}

	public void setSortId(Long sortId) {
		this.sortId = sortId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Timestamp getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Integer getRemaining() {
		return remaining;
	}

	public void setRemaining(Integer remaining) {
		this.remaining = remaining;
	}

	@Override
	public String toString() {
		return "Detail [id=" + id + ", sortId=" + sortId + ", name=" + name + ", address=" + address + ", price="
				+ price + ", createDate=" + createDate + ", remaining=" + remaining + "]";
	}

}
